package com.sumainfor.pc.gmio.controller.director;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.gmio.service.DiComplaintContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 *投诉内容类型
 */
@RestController
@RequestMapping("/director/ComplaintType")
public class DiComplaintContentController implements Serializable {
    @Autowired
    private DiComplaintContentService diComplaintContentService;
    /**
     *根据投诉类型编号去查询投诉内容
     */
    @GetMapping("/getDiComplaintContentList")
    public JsonResult getDiComplaintContentList(@RequestParam Map<String,Object>params){
        JsonResult result=new JsonResult();
        List<Map<String,Object>> list=diComplaintContentService.getDiComplaintContentListByComptId(params);
        if (list!=null){
            result.put(list);
        }else{
            result.putFailed("服务器繁忙");
        }
        return result;
    }
}
